<template>
    <div class="sys-page">
        <app-title title="数据字典设置"></app-title>

        <template v-if="showEdit">
            <dict-edit></dict-edit>
        </template>
        <template v-else>
            <dict-search></dict-search>
        </template>
    </div>
</template>

<script>
import DictEdit from './dict_edit';
import DictSearch from './dict_search';

export default {
    name: "dict",
    components: {DictSearch, DictEdit},
    data() {
        return {

        }
    },
    computed: {
        showEdit(){
            return this.$store.state.basiccfg.showEdit
        }
    }
}
</script>

